package com.xyzwps.harbor.handler.validator;

public interface ValidateFunction<T> {

    /**
     * Validate a specified element.
     *
     * <ul>
     *  <li>The specified element should NOT be modified.</li>
     * </ul>
     *
     * @param element to be validated
     * @throws ValidationException when at least one of the requirements were not satisfied.
     */
    void validate(T element);
}
